package service.impl;

import bean.Page;
import bean.Test;
import dao.TestDAO;
import service.TestService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "service")
public class TestServiceImpl implements TestService {
    @Autowired
    private TestDAO dao;

    @Override
    public boolean add(String var2) {
        return dao.add(var2);
    }

    @Override
    public boolean modify(Test test) {
        return dao.mod(test);
    }

    @Override
    public boolean remove(int id) {
        return dao.rem(id);
    }

    @Override
    public Test query(int id) {
        return dao.que(id);
    }

    @Override
    public List<Test> query(String keywords) {
        return dao.que(keywords);
    }

    @Override
    public Page query(Page page) {
        return dao.query(page);
    }
}
